package cn.cool.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuH
 * @since 2021-01-23
 */
@TableName("cool_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论id
     */
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 评论人id
     */
    private Integer userId;

    /**
     * 评论的文章id
     */
    private Integer artId;

    /**
     * 父级评论id
     */
    private Integer parentCommentId;

    /**
     * 父级评论的用户id
     */
    private Integer parentCommentUserId;

    /**
     * 回复二级评论的 被回复评论id
     */
    private Integer replyCommentId;

    /**
     * 回复二级评论的 被回复用户id
     */
    private Integer replyCommentUserId;

    /**
     * 评论级别 回复文章的是一级 其余都是二级评论
     */
    private Integer commentLevel;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 0:表示未删除 1:表示删除
     */
    @TableLogic
    private Boolean isDeleted;

    /**
     * 评论时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModified;


    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getArtId() {
        return artId;
    }

    public void setArtId(Integer artId) {
        this.artId = artId;
    }

    public Integer getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(Integer parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public Integer getParentCommentUserId() {
        return parentCommentUserId;
    }

    public void setParentCommentUserId(Integer parentCommentUserId) {
        this.parentCommentUserId = parentCommentUserId;
    }

    public Integer getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(Integer replyCommentId) {
        this.replyCommentId = replyCommentId;
    }

    public Integer getReplyCommentUserId() {
        return replyCommentUserId;
    }

    public void setReplyCommentUserId(Integer replyCommentUserId) {
        this.replyCommentUserId = replyCommentUserId;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Comment{" +
        "commentId=" + commentId +
        ", userId=" + userId +
        ", artId=" + artId +
        ", parentCommentId=" + parentCommentId +
        ", parentCommentUserId=" + parentCommentUserId +
        ", replyCommentId=" + replyCommentId +
        ", replyCommentUserId=" + replyCommentUserId +
        ", commentLevel=" + commentLevel +
        ", content=" + content +
        ", isDeleted=" + isDeleted +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
